package com.dms.common.exception;

import com.dms.common.api.IErrorCode;

public class C2CBusinessException extends BusinessException {
    
    private IErrorCode errorCode;
    
    public C2CBusinessException(IErrorCode errorCode) {
        super(errorCode.getMessage());
        this.errorCode = errorCode;
    }
    
    public C2CBusinessException(String message) {
        super(message);
    }
    
    public C2CBusinessException(Integer code, String message) {
        super(code, message);
    }
    
    public IErrorCode getErrorCode() {
        return errorCode;
    }
} 